<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>摆设图片列表</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>
<script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">

$(function(){
	$("a[name='modifyHref']").click(function(){
		var id = $(this).attr("title");
		art.dialog.open('${ctx}/backimage/backImageAction!modifyPrepare.do?backgroundImage.id='+id,{title:'修改摆设背景',width:820,height:550,lock:true},false);
    });

	$("a[name='viewBackgroundImage']").click(function(){
		var fullimagepath = $(this).attr("title");
		art.dialog({padding: 0,title: '查看摆设图',content: '<img src="'+fullimagepath+'"/>',lock: true});
    });

	m2('m1_005','m1_005_08');
});

/**************  查询  *******************/
function search(){
	
	var actionUrl = "${ctx}/backimage/backImageAction!list.do";

	$("#curPage").val(1);
	$("#searchForm").attr("action",actionUrl);
	$("#searchForm").submit();
}

</script>
</head>
<body>


<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<form action="${ctx}/backimage/backImageAction!list.do" id="searchForm" name="searchForm" method="post">
<table width="960" cellpadding="0" cellspacing="0" class="tbl_list_border" align="center">
<tr><td>
		<table width="900" border="0" cellspacing="0" cellpadding="0" align="center" style="margin: 0 auto;">
			<tr><td>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td class="nw12a" width="60" align="right">
				背景名称：</td><td><input name="filterTxt" value="title" type="hidden"/>
				<input name="filterValue" type="text" size="15" value="${filterValue }"/>
				<img src="../images/an25.gif" width="50" height="21" onclick="search()" style="cursor: pointer;vertical-align: middle;" >
				</td>
			</tr>
			<tr>
			<td class="nw12a"  align="right">
				开始时间：</td><td style="font-family: 宋体;font-size: 12px;"> <input name="startDate" type="text" size="15" onClick="WdatePicker()" value="<fmt:formatDate value='${startDate }' pattern='yyyy-MM-dd'/>">&nbsp;&nbsp;
              	结束时间：<input name="endDate" type="text" size="15" onClick="WdatePicker()"  value="<fmt:formatDate value='${endDate }' pattern='yyyy-MM-dd'/>">&nbsp;&nbsp;
				<img src="../images/an25.gif" width="50" height="21" onclick="search()" style="cursor: pointer;vertical-align: middle;" >
				</td>
			</tr>
			<tr><td height="5"></td></tr>
			</table>
			</td></tr>
			<tr><td colspan="100%">
             <table width="900" border="0" cellpadding="0" cellspacing="1" bordercolor="#0099CC" bgcolor="#0099CC">
                  <tr bgcolor="#CDE1ED">
                    <td  class="nw12b"  height="30"><div align="center">编号</div></td>
                    <td class="nw12b"><div align="center">背景名称</div></td>
                    <td class="nw12b" width="20%"><div align="center">发布时间</div></td>
                    <td class="nw12b"><div align="center">背景图片</div></td>
                    <td class="nw12b"><div align="center">操作</div></td>
                    </tr>
                    <c:forEach items="${page.result}" var="result" varStatus="status">
	                  <tr bgcolor="#FFFFFF">
	                    <td class="nw12b" height="30"><div align="center">${status.count }</div></td>
	                    <td class="nw12b"><div align="center">${result.title }</div></td>
	                    <td class="nw12b"><div align="center"><fmt:formatDate value="${result.uploadTime }" pattern="yyyy-MM-dd HH:mm"/></div></td>
	                    <td class="nw12b"><div align="center"><a name="viewBackgroundImage" title="${result.imagepath }"  style="cursor: pointer;color: blue;">查看</a></div></td>
	                    <td class="nw12b" align="center">
	        				 <a name="modifyHref" title="${result.id }" style="cursor: pointer;color: blue;">修改</a>
	                   			 &nbsp;            
	                    	<a href="${ctx}/backimage/backImageAction!delete.do?backgroundImage.id=${result.id }" style="cursor: pointer;color: blue;">删除</a>
	        			</td>
	                    </tr>
                    </c:forEach>
                     
              </table></td>
            </tr>
            <tr>
              <td colspan="100%" class="nw12a" align="right" height="30"><jsp:include page="/commons/paging_footer.jsp"/> </td>
            </tr>
          </table>
</td></tr>
</table>
 </form>
    
<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>